package com.ctgu.j08.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
@ApiModel
public class DUser {
    private Integer userId;
    @ApiModelProperty(value="userName", required = true, dataType = "String")
    private String userName;
    @ApiModelProperty(value="password", required = true, dataType = "String")
    private String password;
    @ApiModelProperty(value="userAge", required = false, dataType = "Integer")
    private Integer userAge;
    @ApiModelProperty(value="userSex", required = false, dataType = "Integer")
    private Integer userSex;
    @ApiModelProperty(value="userTel", required = true, dataType = "String")
    private String userTel;
    @ApiModelProperty(value="userDate", required = false, dataType = "Date")
    private Date userDate;
    @ApiModelProperty(value="roleid", required = true, dataType = "Integer")
    private Integer roleid;
    @ApiModelProperty(value="departid", required = true, dataType = "Integer")
    private Integer departid;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel == null ? null : userTel.trim();
    }

    public Date getUserDate() {
        return userDate;
    }

    public void setUserDate(Date userDate) {
        this.userDate = userDate;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getDepartid() {
        return departid;
    }

    public void setDepartid(Integer departid) {
        this.departid = departid;
    }

    @Override
    public String toString() {
        return "DUser{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", userAge=" + userAge +
                ", userSex=" + userSex +
                ", userTel='" + userTel + '\'' +
                ", userDate=" + userDate +
                ", roleid=" + roleid +
                ", departid=" + departid +
                '}';
    }
}